package com.nyist.mq.service;

import com.nyist.entity.User;
import org.apache.rocketmq.client.producer.TransactionSendResult;

/**
 * 1.
 *
 * @ClassName ProducerTXService
 * @Description
 * @Author xiaoyang
 * @Date 2023/03/29/14:08
 */
public interface ProducerTXService {

    /**
     * 发送待事务的消息
     * 参考地址: <a href="https://blog.csdn.net/qq_36737803/article/details/112360609">参考地址</a>
     * @author yangxiaogen
     * @date 2023/3/29 14:11
     * @param user 入参用户信息
     * @return org.apache.rocketmq.client.producer.TransactionSendResult
     */
    TransactionSendResult sendHalfMessage(User user);

}
